Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.multi.tenant.content.views--contentViews

This contribution is part of XML component org.nuxeo.ecm.multi.tenant.content.views inside nuxeo-multi-tenant-jsf-9.10.jar /OSGI-INF/contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="TENANT_HISTORY">
    
          <title>label.contentview.document.history</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
    
          <genericPageProvider class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
            <property name="coreSession">#{documentManager}</property>
            <property name="generateUIComments">true</property>
    
            <whereClause docType="BasicAuditSearch">
              <fixedPart>
                log.docPath like ?
              </fixedPart>
    
              <predicate operator="BETWEEN" parameter="log.eventDate">
                <field name="startDate" schema="basicauditsearch"/>
                <field name="endDate" schema="basicauditsearch"/>
              </predicate>
              <predicate operator="=" parameter="log.category">
                <field name="eventCategory" schema="basicauditsearch"/>
              </predicate>
              <predicate operator="IN" parameter="log.eventId">
                <field name="eventIds" schema="basicauditsearch"/>
              </predicate>
              <predicate operator="=" parameter="log.principalName">
                <field name="principalName" schema="basicauditsearch"/>
              </predicate>
            </whereClause>
            <parameter>#{currentDocument.path}%</parameter>
            <sort ascending="false" column="log.eventDate"/>
            <pageSize>10</pageSize>
            <maxPageSize>1000</maxPageSize>
          </genericPageProvider>
    
          <searchLayout filterDisplayType="quick" name="basicauditsearch"/>
          <showFilterForm>true</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="tenant_event_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="TENANT_HISTORY">

      <title>label.contentview.document.history</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <genericPageProvider class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">true</property>

        <whereClause docType="BasicAuditSearch">
          <fixedPart>
            log.docPath like ?
          </fixedPart>

          <predicate operator="BETWEEN" parameter="log.eventDate">
            <field name="startDate" schema="basicauditsearch"/>
            <field name="endDate" schema="basicauditsearch"/>
          </predicate>
          <predicate operator="=" parameter="log.category">
            <field name="eventCategory" schema="basicauditsearch"/>
          </predicate>
          <predicate operator="IN" parameter="log.eventId">
            <field name="eventIds" schema="basicauditsearch"/>
          </predicate>
          <predicate operator="=" parameter="log.principalName">
            <field name="principalName" schema="basicauditsearch"/>
          </predicate>
        </whereClause>
        <parameter>#{currentDocument.path}%</parameter>
        <sort ascending="false" column="log.eventDate"/>
        <pageSize>10</pageSize>
        <maxPageSize>1000</maxPageSize>
      </genericPageProvider>

      <searchLayout filterDisplayType="quick" name="basicauditsearch"/>
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{currentDocument.repositoryName}_#{currentDocument.id}</cacheKey>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="tenant_event_listing" showCSVExport="true" showPDFExport="false" title="history_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>

  </extension>